{if empty($hideCreateNew) && $canCreate}
	<div class="ow_right">{decorator name='button' class='ow_ic_add' id='btn-create-new-group' langLabel='groups+add_new'}</div>
	{script}{literal}
		$('#btn-create-new-group').click(function(){location.href='{/literal}{url_for_route for="groups-create"}{literal}'})
	{/literal}{/script}
{/if}


{$menu}


<div class="clearfix">
    <div class="ow_automargin ow_superwide">
      {if empty($list) }
        <div class="ow_nocontent">{text key="groups+listing_no_items_msg"}</div>
      {else}
          {foreach from=$list key='key' item='group'}
                {decorator name='ipc' addClass='ow_smallmargin' data=$group infoString="<a href=\"`$group.url`\">`$group.title`</a>"}
          {/foreach}
          <br />
          {$paging}
      {/if}
    </div>
</div>